package cn.zn.modules.expense.service;

import cn.zn.modules.report.vo.ReportCashierVo;
import cn.zn.framework.common.utils.PageUtils;
import cn.zn.modules.expense.entity.TpAttachmentEntity;
import cn.zn.modules.expense.entity.TpMainEntity;
import cn.zn.modules.expense.vo.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author zn
 * @email zhunahao@qq.com
 * @date 2019-08-31 12:46:27
 */
public interface TpMainService extends IService<TpMainEntity> {

    TpMainEntity findByAppontMainId(String mainId);

    /**
     * 查询出纳统计
     *
     * @return
     */
    List<ReportCashierVo> findReportCashier();

    /**
     * 经费占用
     *
     * @return
     */
    List<ExpenseForMoney> findByMoney(String moneyTypeCode, String projectCode, String cateCode);

    /**
     * 查询流程任务信息
     *
     * @param taskId
     * @return
     */
    TaskVo findTaskInfo(String taskId);

    /**
     * 批量查询任务信息
     *
     * @param taskIds
     * @return
     */
    List<TaskVo> findTaskInfos(List<String> taskIds);

}

